<?php 
use App\Models\Selection as Selection;
use App\Http\Tools as Tools;
if(!isset($_SESSION)){
    session_start();
}
?>
<!--    继承layouts/std_master.php模板  -->
@extends('layouts.thr_master')

<!-- 重写内容  -->
@section('content')

<div class="col-lg-3"></div>
<div class="col-lg-6">
<h1 align="center">项目明细</h1>


<div class="main-box-body clearfix">
<div class="table-responsive">
<table class="table table-striped table-hover">
	<tr>
		<th >项目申报人</th>
		<td>{{$data->teacher->name}}</td>
	</tr>
	<tr>
		<th>项目组人员</th>
		<td>
			@foreach($data->selection as $select)
				{{$select->student->name}}
				@if($data->std_mag==$select->sid)
					(组长)
				@endif

			@endforeach
		</td>
	</tr>
	<tr>
		<th>项目指导老师</th>
		<td>{{$data->teacher->name}}</td>
	</tr>
	<tr>
		<th>项目名称</th>
		<td>{{$data->pname}}</td>
	</tr>
	<tr>
		<th>资助类别</th>
		<td>
			{{Tools::getSupportType($data->type) }}
		</td>
	</tr>
	<tr>
		<th>项目来源</th>
		<td>{{$data->source}}</td>
	</tr>
	<tr>
		<th>项目起始时间</th>
		<td>{{$data->start}}</td>
	</tr>
	<tr>
		<th>项目完成时间</th>
		<td>{{$data->end}}</td>
	</tr>
	<tr>
		<th>指导教师是否确认</th>
		<td>{{$data->editable==0?'未确认':'已确认'}}</td>
	</tr>
	<tr>
		<th>项目详细内容</th>
		<td>{{$data->details}}</td>
	</tr>
	<tr>
		<th>操作</th>
		<td>
		</td>
	</tr>



</table>
</div>
</div>
</div>



@endsection